package com.woniuxy.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.woniuxy.entity.LogisticsPartner;
import com.woniuxy.mapper.LogisticsPartnerMapper;
import com.woniuxy.service.LogisticsPartnerService;
import com.woniuxy.util.PageData;
import com.woniuxy.util.ResponseData;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LogisticsPartnerServiceImpl implements LogisticsPartnerService {
    @Resource
    private LogisticsPartnerMapper logisticsPartnerMapper;
//    @Override
//    public ResponseData<?> queryLogisticsPartner(PageData<LogisticsPartnerDTO> pageData) {
//        // 分页插件开始分页
//        PageHelper.startPage(pageData.getPageNum(), pageData.getPageSize());
//
//        List<LogisticsPartner> logisticsPartners = logisticsPartnerMapper.queryLogisticsPartner(pageData.getParam());
//
//        // 封装分页类(分页的数据，分页信息(总条数))
//        PageInfo pageInfo = new PageInfo(logisticsPartners);
//        return new ResponseData(200, "查询成功", pageInfo);
//    }
}
